import java.util.Scanner;

public class Operators {
    public static void main(String[] args) {
        int basic_salary=0;
        Scanner sc = new Scanner(System.in);
        System.out.println("Enter the basic salary :");
        basic_salary = sc.nextInt();
        double HRA = 0.5 * basic_salary;
        System.out.println("HRA is :"+ HRA);
        double Special_Allowance = 0.75 * basic_salary;
        System.out.println("Special Allowance is :"+ Special_Allowance);
        double PF = 0.12 * basic_salary;
        System.out.println("PF is :"+ PF);
        double total_salary =  HRA + Special_Allowance - PF;
        System.out.println("Total salary is :"+ total_salary);


    }
}
